<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>{{ title or "图像8分类（Flask）" }}</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
  <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  <style>
    .container { max-width: 980px; margin: auto; padding: 1rem; }
    .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    img.preview { max-width: 100%; height: auto; border-radius: 8px; }
    .muted { color: #667085; font-size: 0.9rem; }
  </style>
</head>
<body>
  <main class="container">
    <h2>{{ title or "图像8分类（Flask）" }}</h2>
    {% block content %}{% endblock %}
  </main>
</body>
</html>